package com.lzk.store.service.impl;

import com.lzk.JsonResult;
import com.lzk.domain.Store;
import com.lzk.store.mapper.StoreMapper;
import com.lzk.store.service.IStoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StoreServiceImpl implements IStoreService {
    @Autowired
    private StoreMapper storeMapper;
    @Override
    public JsonResult save(Store store) {
        try {
            storeMapper.save(store);
            return new JsonResult(true,"操作成功");
        } catch (Exception e) {
            e.printStackTrace();
            return new JsonResult(false,"操作失败");
        }

    }
}
